package cn.e2win.biz.security;

import java.io.Serializable;

import org.springframework.security.core.GrantedAuthority;

import cn.e2win.base.entity.SysFunction;

/**
 * 用户分配的权限
 * @author tanpe
 *
 */
public class DmsGrantedFunction implements GrantedAuthority, Serializable {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	private SysFunction function;
	
	public DmsGrantedFunction(SysFunction function) {
		this.function = function;
	}
	
	public SysFunction getFunction() {
		return function;
	}

	public void setFunction(SysFunction function) {
		this.function = function;
	}
	
	



	@Override
	public String getAuthority() {
		// TODO Auto-generated method stub
		return this.function.getTitle();
	}

}
